<!DOCTYPE html>
<html lang="en">
    <head>
        <meta charset="utf-8"/>
        <title>0000</title>
        <style>
            .box {
                width:100px;
                height:100px;
                background:red;
                margin:100px auto 0;
                transition:3s; 
            }
            body {
                height:300px;
            }
            body:hover .box {
                -webkit-transform:rotate(1080deg);
            }
        </style>
    </head>
    <body>
        <div class="box" id="box"></div>
    </body>
</html>